package org.keyroy.map_editor.map.layers;

import java.util.ArrayList;
import java.util.List;

import org.keyroy.map_editor.map.MapZone;
import org.keyroy.map_editor.map.m.Rect;
import org.keyroy.tag.Tag;
import org.keyroy.tag.XmlSupport;

public class ZoneLayer extends Rect implements XmlSupport {
	public List<MapZone> zones = new ArrayList<MapZone>();

	@Override
	public String getTagName() {
		return "ml";
	}

	@Override
	public void initObj(Tag tag) {
		super.initObj(tag);
		tag.addChild(zones);
	}

	@Override
	public void initTag(Tag tag) {
		super.initTag(tag);
		tag.getChildObjectArray(MapZone.class, zones);
	}

}
